﻿<usr:UserControlBase x:Class="WPF.TestEditor.Controls.Execute.ExecutePanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
            xmlns:usr="clr-namespace:WPF.TestEditor.Controls"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary>
            <Style x:Key="txtExecuteInfo" TargetType="TextBlock">
                <Setter Property="Foreground" Value="Goldenrod"/>
            </Style>
            <Style x:Key="txtExecuteLog" TargetType="TextBox">
                <Setter Property="Foreground" Value="{DynamicResource TextBrush}"/>
                <Setter Property="FontSize" Value="12"/>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>
    <Border BorderBrush="Gray" BorderThickness="1"  Grid.Column="0" Grid.Row="1">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Name="txtTestInfo"  Grid.Column="2" Grid.Row="0" FontSize="14" FontWeight="Bold" Style="{DynamicResource txtExecuteInfo}" />
            <Border  Grid.Row="1" Grid.Column="2"  BorderBrush="Gray" BorderThickness="1" Margin="5">
                <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"  Style="{DynamicResource metroScrollViewer}">
                    <StackPanel Orientation="Vertical" x:Name="stackInfoPanel">

                    </StackPanel>
                </ScrollViewer>
            </Border>
            <GridSplitter Grid.Row="1" Grid.Column="1" Width="2" HorizontalAlignment="Center" VerticalAlignment="Stretch" Background="Transparent" ShowsPreview="True" />

            <ScrollViewer x:Name="executionLogArea" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"  Style="{DynamicResource metroScrollViewer}" Margin="5 5 5 5" Grid.Row="1" Grid.Column="0">
                <TextBox Name="txtTotalLog" TextWrapping="WrapWithOverflow" Style="{DynamicResource txtExecuteLog}" />
            </ScrollViewer>
            <usr:BrowsersSelector x:Name="usrBrowsers"  Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Margin="10"/>
        </Grid>
    </Border>
</usr:UserControlBase>
